-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: Add warning about implicit logical ID usage in sam build #2907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
431f68f to
d5347fe
Compare
|
Breadcrumb to related PR: aws/serverless-application-model#2043 |
samcli/commands/build/command.py
Outdated
| build_images=processed_build_images, | ||
| aws_region=click_ctx.region, | ||
| ) as ctx: | ||
| SamApiProvider.check_implicit_api_resource_ids(ctx.stacks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it check whether the template is a SAM template? i.e. with Transform: AWS::Serverless-2016-10-31?
I believe SAM CLI also supports building pure CFN template. In that case, the implicit API logical IDs should not be reserved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any updates corresponding to this change request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed
9fb9b7f to
54d6939
Compare
54d6939 to
2979034
Compare
Co-authored-by: Chris Rehn <crehn@outlook.com>
…2907) * chore: Add warning about implicit logical ID usage in sam build * Update samcli/lib/providers/sam_api_provider.py Co-authored-by: Chris Rehn <crehn@outlook.com> * Fix a smoke test case where "Transform" is not a str Co-authored-by: Chris Rehn <crehn@outlook.com>
Which issue(s) does this change fix?
aws/serverless-application-model#2152
Why is this change necessary?
How does it address the issue?
What side effects does this change have?
Checklist
make prpassesmake update-reproducible-reqsif dependencies were changedBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.